//
//  defineFile.h
//  OrderMeal
//
//  Created by 江苏宏创 on 14-7-21.
//  Copyright (c) 2014年 qkong. All rights reserved.
//

#define screenWidth [UIScreen mainScreen].bounds.size.width
#define screenHeight [UIScreen mainScreen].bounds.size.height

#define hostEngine [[MKNetworkEngine alloc]initWithHostName:hostName]
#define userDefaults [NSUserDefaults standardUserDefaults]
#define currentSystemVersion [[UIDevice currentDevice].systemVersion floatValue]

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define successState completedOperation.responseJSON[@"success"]